<?php
	Configure::load('settings');
	$appSettings = Configure::read('settings');
?>
<!DOCTYPE html>
<html>
<head>
	<title><?php echo $title_for_layout; ?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href="<?php echo $this->Html->url('/admin/bootstrap'); ?>/css/bootstrap.min.css" rel="stylesheet" media="screen" />
	<link href="<?php echo $this->Html->url('/admin'); ?>/css/admin.css" rel="stylesheet" />
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="<?php echo $this->Html->url('/admin/bootstrap'); ?>/js/html5shiv.js"></script>
	<script src="<?php echo $this->Html->url('/admin/bootstrap'); ?>/js/respond.min.js"></script>
	<![endif]-->
	<script src="//code.jquery.com/jquery.js"></script>
	<?php 
		echo $this->Html->meta('icon');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
	
	<?php echo $this->element('header', array('appSettings' => $appSettings)); ?>
	
	<div id="content" class="container">
		<?php echo $this->Session->flash('flash'); ?>
		<?php echo $this->element('breadcrumbs'); ?>
		<?php echo $this->element('sidebar'); ?>
		<div class="col-xs-6 col-sm-10">
		<?php echo $this->fetch('content'); ?>
		</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
	<?php echo $this->element('footer'); ?>
	
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="<?php echo $this->Html->url('/admin/bootstrap'); ?>/js/bootstrap.min.js"></script>
</body>
</html>